const db = require('../database')
exports.getUserList = (req, res) => {
    const sql = 'SELECT username, password FROM ev_users'
    db.query(sql, (err, results) => {
        if (err) return res.cc(err)
        // 将生成的Token字符串响应给客户端
        res.send({
            status: 0,
            message: 'success',
            data: results
        })
    })
}